package com.ruoyi.cloudpc.mapper;

import com.ruoyi.cloudpc.domain.CloudPromotion;

import java.util.List;

/**
 * 推广Mapper接口
 *
 * @author Ten
 * @date 2025-09-18
 */
public interface CloudPromotionMapper {
    /**
     * 查询推广
     *
     * @param fromUserName 推广主键
     * @return 推广
     */
    public CloudPromotion selectCloudPromotionByFromUserName(String fromUserName);

    /**
     * 查询推广列表
     *
     * @param cloudPromotion 推广
     * @return 推广集合
     */
    public List<CloudPromotion> selectCloudPromotionList(CloudPromotion cloudPromotion);

    /**
     * 新增推广
     *
     * @param cloudPromotion 推广
     * @return 结果
     */
    public int insertCloudPromotion(CloudPromotion cloudPromotion);

    /**
     * 修改推广
     *
     * @param cloudPromotion 推广
     * @return 结果
     */
    public int updateCloudPromotion(CloudPromotion cloudPromotion);

    /**
     * 删除推广
     *
     * @param fromUserName 推广主键
     * @return 结果
     */
    public int deleteCloudPromotionByFromUserName(String fromUserName);

    /**
     * 批量删除推广
     *
     * @param fromUserNames 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCloudPromotionByFromUserNames(String[] fromUserNames);
}
